<template>
	<view class="page-bg">
		<image :src="getImgUrl(infos)" mode="widthFix"></image>
	</view>
</template>

<script>
	import {
		inviteCode
	} from "@/api/apis/retail.js"
	import {
		setImgUrl
	} from "@/utils/comm.js"
	export default {

		data() {
			return {
				infos: ""
			}
		},
		onLoad() {
			this.getInfo()
		},
		methods: {
			getInfo() {
				inviteCode().then(res => {
					this.infos = res.data.qr_code
				})
			},
			getImgUrl(url) {
				return setImgUrl(url);
			},
		}
	}
</script>

<style scoped lang="scss">
	.page-bg{
		padding-top: 200rpx;
	}
</style>